/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package datapackage;

import java.beans.*;
import java.io.Serializable;
import java.util.Hashtable;
import java.util.List;

/**
 *
 * @author salim
 * session bean
 */
public class AnCeBean extends Object implements Serializable {

    public static final String PROP_SAMPLE_PROPERTY = "sampleProperty";

    private String sampleProperty;
    private int annee;
    private int centre;
    private int noChef=0;//initializer ici et tester au filter
    private String prenomchef;
    private String nomchef;
    private String prenomnomchef;
    private String nomcentre;
    private int noenseig;
    private String intitule;
    private int spec;
    private String nomspec;//ou departement
    private String cycle;
    private String option;
    private int gradeaffv;//pour la visualization
    private List<gradeaff> gradeaffl;
    private List<UeProf> ueprof;
    private HoraireMatrice horairematriceStr;
    private HoraireMatrice horairematriceInt;
    private List<horairehebdo> horairehebdototal;
    private int[] gradeaff;
    private int semestre;
    private String  username;
    private String password;
    private Hashtable hash;
    private int langue=0;//0 si pas du langue ,1 si on va les langues
    private int matspec=1;//il n'y pas des matieres
    //pour l'acces employe 3-8-09
    private int centreEmp;
    private int noEmp=0;
    private String prenomnomEmp;

    public int getCentreEmp() {
        return centreEmp;
    }

    public void setCentreEmp(int centreEmp) {
        this.centreEmp = centreEmp;
    }

    public int getNoEmp() {
        return noEmp;
    }

    public void setNoEmp(int noEmp) {
        this.noEmp = noEmp;
    }

    public String getPrenomnomEmp() {
        return prenomnomEmp;
    }

    public void setPrenomnomEmp(String prenomnomEmp) {
        this.prenomnomEmp = prenomnomEmp;
    }

    

    public int getMatspec() {
        return matspec;
    }

    public void setMatspec(int matspec) {
        this.matspec = matspec;
    }



    public int getLangue() {
        return langue;
    }

    public void setLangue(int langue) {
        this.langue = langue;
    }





    public Hashtable getHash() {
        return hash;
    }

    public void setHash(Hashtable hash) {
        this.hash = hash;
    }




    public List<UeProf> getUeprof() {
        return ueprof;
    }

    public void setUeprof(List<UeProf> ueprof) {
        this.ueprof = ueprof;
    }





    public String getPrenomnomchef() {
        return prenomnomchef;
    }

    public void setPrenomnomchef(String prenomnomchef) {
        this.prenomnomchef = prenomnomchef;
    }




    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }



    public int getSemestre() {
        return semestre;
    }

    public void setSemestre(int semestre) {
        this.semestre = semestre;
    }

    public int[] getGradeaff() {
        return gradeaff;
    }

    public void setGradeaff(int[] gradeaff) {
        this.gradeaff = gradeaff;
    }



    public String getCycle() {
        return cycle;
    }

    public void setCycle(String cycle) {
        this.cycle = cycle;
    }

    public String getNomchef() {
        return nomchef;
    }

    public void setNomchef(String nomchef) {
        this.nomchef = nomchef;
    }

    public String getNomspec() {
        return nomspec;
    }

    public void setNomspec(String nomspec) {
        this.nomspec = nomspec;
    }

    public String getOption() {
        return option;
    }

    public void setOption(String option) {
        this.option = option;
    }

    public String getPrenomchef() {
        return prenomchef;
    }

    public void setPrenomchef(String prenomchef) {
        this.prenomchef = prenomchef;
    }



    public List<horairehebdo> getHorairehebdototal() {
        return horairehebdototal;
    }

    public void setHorairehebdototal(List<horairehebdo> horairehebdototal) {
        this.horairehebdototal = horairehebdototal;
    }



    private PropertyChangeSupport propertySupport;


    public PropertyChangeSupport getPropertySupport() {
        return propertySupport;
    }

    public void setPropertySupport(PropertyChangeSupport propertySupport) {
        this.propertySupport = propertySupport;
    }


    public List<gradeaff> getGradeaffl() {
        return gradeaffl;
    }

    public void setGradeaffl(List<gradeaff> gradeaffl) {
        this.gradeaffl = gradeaffl;
    }

    public AnCeBean() {
        propertySupport = new PropertyChangeSupport(this);
        gradeaff=null;
    }

    public int getGradeaffv() {
        return gradeaffv;
    }

    public void setGradeaffv(int gradeaffv) {
        this.gradeaffv = gradeaffv;
    }

    public int getSpec() {
        return spec;
    }

    public void setSpec(int spec) {
        this.spec = spec;
    }

    public HoraireMatrice getHorairematriceInt() {
        return horairematriceInt;
    }

    public void setHorairematriceInt(HoraireMatrice horairematriceInt) {
        this.horairematriceInt = horairematriceInt;
    }

    public HoraireMatrice getHorairematriceStr() {
        return horairematriceStr;
    }

    public void setHorairematriceStr(HoraireMatrice horairematriceStr) {
        this.horairematriceStr = horairematriceStr;
    }




    public String getNomcentre() {
        return nomcentre;
    }

    public void setNomcentre(String nomcentre) {
        this.nomcentre = nomcentre;
    }

    public int getNoChef() {
        return noChef;
    }

    public void setNoChef(int NoChef) {
        this.noChef = NoChef;
    }

    public int getAnnee() {
        return annee;
    }

    public void setAnnee(int annee) {
        this.annee = annee;
    }

    public int getCentre() {
        return centre;
    }

    public void setCentre(int centre) {
        this.centre = centre;
    }

    public int getNoenseig() {
        return noenseig;
    }

    public void setNoenseig(int noenseig) {
        this.noenseig = noenseig;
    }

    public String getIntitule() {
        return intitule;
    }

    public void setIntitule(String intitule) {
        this.intitule = intitule;
    }

    public String getSampleProperty() {
        return sampleProperty;
    }

    public void setSampleProperty(String value) {
        String oldValue = sampleProperty;
        sampleProperty = value;
        propertySupport.firePropertyChange(PROP_SAMPLE_PROPERTY, oldValue, sampleProperty);
    }


    public void addPropertyChangeListener(PropertyChangeListener listener) {
        propertySupport.addPropertyChangeListener(listener);
    }

    public void removePropertyChangeListener(PropertyChangeListener listener) {
        propertySupport.removePropertyChangeListener(listener);
    }

}
